﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Class="SmartBoard.Book.Dialogs.CreateNewBookDialog"
    Title="Create New Book" mc:Ignorable="d" SizeToContent="WidthAndHeight" ResizeMode="NoResize" WindowStartupLocation="CenterOwner">
    <Grid>
        
    	<Grid.RowDefinitions>
    		<RowDefinition Height="Auto"/>
    		<RowDefinition Height="3"/>
    		<RowDefinition Height="Auto"/>
    		<RowDefinition Height="3"/>
    		<RowDefinition Height="Auto"/>
    	</Grid.RowDefinitions>
    	<Grid.ColumnDefinitions>
    		<ColumnDefinition Width="3*"/>
    		<ColumnDefinition Width="7*"/>
    	</Grid.ColumnDefinitions>
    	<StackPanel Grid.Row="5" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Right" Margin="5">
    		<Button x:Name="w_btnOK" Content="_OK" Margin="0,0,5,0" IsDefault="True" VerticalAlignment="Top" Click="HandleOK"/>
    		<Button x:Name="w_btnCancel" Content="_Cancel" IsCancel="True" Click="HandleCancel"/>
    	</StackPanel>
    	<TextBlock Text="Book Name" VerticalAlignment="Center" Margin="3,4,3,0" />
    	<TextBlock Text="Page Count" Grid.Row="2" VerticalAlignment="Center" Margin="3,0"  />
    	<TextBox x:Name="w_txtName" Text="{Binding Path=BookName,UpdateSourceTrigger=PropertyChanged}" Grid.Column="1" MaxLength="3" MaxLines="1" Width="150" Margin="0,4,4,0"  />
    	<TextBox x:Name="w_txtPageCount" Text="{Binding Path=PageCount,UpdateSourceTrigger=PropertyChanged}" Grid.Row="2" Grid.Column="1" Width="30" HorizontalAlignment="Left"  />
    </Grid>
</Window>
